package com.czb.service;

import com.czb.service.impl.BikeServiceImpl;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by BIN on 2018-05-31.
 */
@FeignClient(value = "eureka-client", fallback = BikeServiceImpl.class)
public interface IBikeService {
    @RequestMapping(value="/show", method= RequestMethod.GET)
    String rideBike(@RequestParam(value = "name") String name);
}
